/*
  Tên:Huỳnh Nguyễn Ngọc Hân
  MSSV:11370551
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef FRTHELOAI_H
#define FRTHELOAI_H

#include <QDialog>
#include "mysqlconnection.h"
#include "qitemselectionmodel.h"
namespace Ui {
class frTheLoai;
}

class frTheLoai : public QDialog
{
    Q_OBJECT
    
public:
    explicit frTheLoai(QWidget *parent = 0);
    ~frTheLoai();
protected:
    void changeEvent(QEvent *e);
private:
    Ui::frTheLoai *ui;
    MySqlConnection *DB;
    QItemSelectionModel *selectionModel;
    QString selectedtl;
    QString selecttentl;
     void resetTableSelectionEvent();
public slots:
    void ThemTheLoai();
    void Loadtable();
    void xoatl();
    void suatl();
    void empty();
    void setDefault();
    void selectRow();
    void thoat();

};

#endif // FRTHELOAI_H
